Skip to content

Hide mobile repo access for Ultra subscribers after Feb 1 2026#323

Merged
simonhamp merged 1 commit intomainfrom
hide-mobile-repo-post-feb
Mar 31, 2026
Merged

Hide mobile repo access for Ultra subscribers after Feb 1 2026#323
simonhamp merged 1 commit intomainfrom
hide-mobile-repo-post-feb

Conversation

@simonhamp
Copy link
Copy Markdown
Member

Summary

  • Ultra subscribers whose subscriptions started on or after February 1, 2026 are no longer shown the nativephp/mobile repo access option on the integrations page
  • Only Max license holders and pre-cutoff Ultra subscribers retain mobile repo access
  • Added User::hasMobileRepoAccess() method encapsulating the date-based eligibility logic

Changes

  • app/Models/User.php — new hasMobileRepoAccess() method: Max license holders always qualify; Ultra subscribers only if subscription created_at < 2026-02-01
  • resources/views/livewire/customer/integrations.blade.php — GitHub banner gated by hasMobileRepoAccess(), Discord banner remains gated by hasMaxAccess()
  • resources/views/livewire/git-hub-access-banner.blade.php — switched guard from hasMaxAccess() to hasMobileRepoAccess()
  • app/Http/Controllers/GitHubIntegrationController.phprequestRepoAccess() now checks hasMobileRepoAccess()
  • app/Console/Commands/RemoveExpiredGitHubAccess.php — cleanup command uses hasMobileRepoAccess() so post-cutoff subscribers get revoked

Test plan

  • 12 new tests in MobileRepoAccessTest covering model logic, page visibility, controller enforcement, and cleanup command
  • All existing GitHubIntegrationTest tests still pass

🤖 Generated with Claude Code

Ultra subscribers whose subscriptions started on or after February 1,
2026 no longer qualify for nativephp/mobile repository access. Only
Max license holders and pre-cutoff Ultra subscribers retain access.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@simonhamp simonhamp marked this pull request as ready for review March 31, 2026 11:19
@simonhamp simonhamp merged commit 416bee4 into main Mar 31, 2026
2 checks passed
@simonhamp simonhamp deleted the hide-mobile-repo-post-feb branch March 31, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant